package top.huhuiyu.javabasic.javabasictemplate.entity;

import java.io.Serializable;
import java.util.Date;

public class TbNews implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer nid;
    private String title;
    private String info;
    private String source;
    private Integer hits;
    private Date lastupdate;

    @Override
    public String toString() {
        return "TbNews{" + "nid=" + nid + ", title='" + title + '\'' + ", info='" + info + '\'' + ", source='" + source + '\'' + ", hits=" + hits + ", lastupdate=" + lastupdate + '}';
    }

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Date getLastupdate() {
        return lastupdate;
    }

    public void setLastupdate(Date lastupdate) {
        this.lastupdate = lastupdate;
    }
}
